﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Compute
    {
        public double Add(double i, double j)
        {
            return i + j;
        }  
        public void Minus(double i, double j)
        {
            double M = i - j;
            double N = j - i;
            double x = M >= N ? M: N;
            Console.WriteLine(x);
        }
        public double Multip(double i, double j)
        {
            return i *j;
        }
        public void consult(double i, double j)
        {
            if (j > i)
            {
                double temp = j;
                j = i;
                i = temp;
            }
            double con = i / j;
            Console.WriteLine(con);
        }
    }
}
